mergPopSheet
Type
function
Summary
Presents an action sheet or popover on iPad
Syntax
mergPopSheet([<pTitle>], [<pCancel>], [<pDestructive>], [<pOther>], [<pStyle>], [<pPopoverRect>])
Description
Presents an action sheet or popover on iPad
Parameters
Name | Type | Description |
---|---|---|
pTitle | (optional with "" default) the title to display. | |
pCancel | (optional with "" default) the cancel button label if required. This button is displayed in grey at the bottom of the action sheet. Popovers don't display a cancel button as the user cancels by touching away from the popover. | |
pDestructive | (optional with "" default) this button is displayed in red at the top of the action sheet or popover. | |
pOther | (optional with "" default) comma delimited list of button labels. | |
pStyle | (optional with "default" default) one of:
| |
pPopoverRect | (optional with "" default) a rect on screen which is used as the location the popover is presented from. This defaults to the rect of the target control. |
Examples
switch mergPopSheet("","Cancel","Delete","Save","black translucent")
case "Delete"
deleteRecord
break
case "Save"
updateRecord
break
end switch
Compatibility and Support
Introduced
LiveCode 8.0
OS
ios
Platforms
mobile